<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  
 </body>
</html>
<script>
//3*a+2*b+c==200
//a+b+c==100
for (var apple=0;apple<67 ; apple++)
{
	for (var y=0; y<=100; y++)
	{
		for (var t=0; t<=200;t++ )
		{
			if (3*apple+2*y+t==200 && apple+y+t==100)
			{
			console.log(apple,y,t);
			};
		};
	};
	
};

/*for (var a=1;a<=10000 ;a++ )
{var sum = 0;
	for (var b=1;b<=a ;b++ )
	{
		if (a%b==0)
		{
			sum += b
		};
	};
	if (sum==2*a)
			{
				console.log(a)
			};
};*/
</script>

